﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Orpheus.Analyzer
{
    public delegate TimeSpan GetCurrentTimeDelegate();

    public abstract class TrackAnalyserBase
    {
        protected TrackInfo _trackInfo;
        protected GetCurrentTimeDelegate _GetCurrentTimeCallback;

        protected TrackAnalyserBase(TrackInfo trackInfo, GetCurrentTimeDelegate getCurrentTimeCallback)
        {
            _trackInfo = trackInfo;
            _GetCurrentTimeCallback = getCurrentTimeCallback;
        }

        public abstract void ProcessSamples(float left, float right);

        public abstract void OnTrackStopped();
    }
}
